package com.usian.service.impl;

import com.usian.mapper.poste.PosteMapper;
import com.usian.pojo.poste.Poste;
import com.usian.service.PosteService;
import com.usian.vo.StaffVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PosteServiceImpl implements PosteService {

    @Autowired
    private PosteMapper posteMapper;

    @Override
    public List<Poste> findAl(Integer depId) {
        List<Poste> al = posteMapper.findAl(depId);
        return al;
    }

    @Override
    public void delet(Integer id) {
        posteMapper.deleteById(id);
    }
}
